
import { get, post ,deletes, put} from './http'
// 获取 用户 list
export const getList = (params) => get(`/users/`,params)
// 根据 id 删除用户
export const deleteUser = (id) => deletes(`/users/`+id)
// 新增用户
export const addUser = (params) => post(`/users/`, params)
// 根据 id 查询用户
export const getInfo = (id) => get(`/users/`+id)
// 修改用户信息
export const editUser = (id,params) => put(`/users/`+id,params)
// 修改用户状态
export const isEnableUser = (id,params) => put(`/users/status/`+id,params)
// 登录
export const login = (params) => post(`/user/login/`, params)

export const getAuthCode = (params) => get(`/user/authCode/`,params)

// 修改密码信息
export const editPass = (params) => put(`/user/password/`,params)


